<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>宅急送-订单</title>
    <script src="/resources/js/function/Local.js"></script>
    <link rel="stylesheet" href="/resources/layui/css/layui.css">
    <script type="text/javascript" src="/resources/layui/layui.js"></script>
    <script src="/resources/js/jquery.min.js"></script>
</head>
<body>
    <div>
        <h3>我的订单</h3>
    </div>
    <table id="demo" lay-filter="test"></table>

    <script>
        layui.use('table', function(){
            var table = layui.table;

            //第一个实例
            table.render({
                elem: '#demo'
                ,height: 312
                ,url: '/demo/table/user/' //数据接口
                ,page: true //开启分页
                ,cols: [[ //表头
                    {field:'kuang',type:'checkbox'},
                    {field:'id', title: '订单编号', sort: true}
                    ,{field: 'name', title: '用户名'}
                    ,{field:'user',  title: '物品'}
                    ,{field:'password',  title: '订单时间'}
                    ,{field:'phone',  title: '手机号'}
                    ,{field:'protrait',  title: '目的地'}
                    ,{field:'chakan',  title: '查看'}
                ]]
            });

        });
    </script>
</body>
</html>